<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>P{{ problem.id }} {{ problem.problem_title }}</title>
	{% include "../header.html" %}
</head>

<body>
	{% include "../nav.html" %}
	<div class="row" style="margin: 3% 8% 5% 8%">
		<div class="col-md-8">
			<div class="card">
				<div class="card-body">
					<h4>P{{ problem.id }} {{ problem.problem_title }}</h4>
					<hr />
					<span id="problemInfo">
						{% autoescape off %}
						{{ problem.problem_info }}
						{% endautoescape %}
					</span>
				</div>
			</div>
			<br>
		</div>
		<div class="col-md-4">
			<div class="card">
				<div class="card-body">
					<h4>限制</h4>
					<table class="table">
						<tr>
							<td>时间限制</td>
							<td>{{ problem.time_limit }}ms</td>
						</tr>
						<tr>
							<td>空间限制</td>
							<td>{{ problem.memory_limit }}MB</td>
						</tr>
					</table>
				</div>
			</div>
			<br>
			<div class="card">
				<div class="card-body">
					<h4>咻咻 ~</h4>
					<a href="{% url 'vt1:problemSubmit' problem.id %}" class="btn btn-primary">提交代码</a>
				</div>
			</div>
		</div>
	</div>
	<script>
		window.onload = function () {
			//document.getElementById("problemInfo").innerHTML = markdown.toHTML(document.getElementById("problemInfo").innerHTML);
		}
	</script>
	{% include "../footer.html" %}
</body>

</html>